package com.piggy.logi.sys.mapper;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.piggy.common.core.web.page.BaseMapperPlus;
import com.piggy.logi.sys.domain.LogiGoodSource;
import com.piggy.logi.sys.domain.LogiOrderGoodSource;

import java.util.List;

/**
 * 货源信息Mapper接口
 */
public interface LogiGoodSourceMapper extends BaseMapperPlus<LogiGoodSource> {

    default List<LogiGoodSource> queryListByOrderIds(List<Long> goodOrderIds) {
        return selectList(Wrappers.<LogiGoodSource>lambdaQuery().in(LogiGoodSource::getGoodId, goodOrderIds));
    }
}
